package com.td.module.member.controller.admin.appMemberUser.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.desensitize.core.slider.annotation.MobileDesensitize;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * app用户 Excel VO
 *
 * @author 王翔翔
 */
@Data
public class AppMemberUserExcelVO {

    @ExcelProperty("用户昵称")
    private String nickname;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer status;

    @ExcelProperty("手机号")
    @MobileDesensitize
    private String mobile;

    @ExcelProperty("最后登录时间")
    private LocalDateTime loginDate;

    @ExcelProperty("是否实名认证")
    private Integer isAuth;

}
